
#ifndef __FOLDERCOMPONENT__
#define __FOLDERCOMPONENT__

#include "../includes/includes.h"
#include "FolderItemComponent.h"


class FolderComponent : public Component
{
public:
    //==============================================================================
    FolderComponent (const String& directoryPath);
    ~FolderComponent();

	void setPath(const String& directoryPath);

	void getFile(const int& i);

    void paint (Graphics& g);
    void resized();

    //==============================================================================
    juce_UseDebuggingNewOperator

private:
	String directoryPath;

	OwnedArray<FolderItemComponent> items;

    //==============================================================================
    // (prevent copy constructor and operator= being generated..)
    FolderComponent (const FolderComponent&);
    const FolderComponent& operator= (const FolderComponent&);
};


#endif   // __FolderComponent__
